import numpy as np

n = np.arange(6)
print(n)

# 重塑 -- 元素个数必须相同，否则报错
n1 = n.reshape(2, 3)
print(n1)

n = np.array([[1, 2, 3], [4, 5, 6]])
print(n)
n1 = n.reshape(3, 2) # 重塑
print(n1)
